package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.DailyDetail;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DailyDetailMapper {

    int insert(DailyDetail record);

    DailyDetail selectByPrimaryKey(Long id);

    List<DailyDetail> selectForList(QueryObject qo);

    int updateByPrimaryKey(DailyDetail record);

    Integer selectMaxSequence(Long id);

    DailyDetail selectByState(Integer state);

    void deleteOld();

    Integer selectTypeById(Long id);

    List<DailyDetail> getCommend(Integer state);

}